﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ERPStore.Models
{
	/// <summary>
	/// filtre d'interrogation des inscriptions
	/// </summary>
	[DataContract]
	public class RegistrationListFilter
	{
		[DataMember]
		public string SearchTerm { get; set; }

		[DataMember]
		public int StateId { get; set; }

		[DataMember]
		public bool? IsRegistered { get; set; }

		[DataMember]
		public bool? IsCorporate { get; set; }

		[DataMember]
		public ERPStore.Models.DateInterval DateInterval { get; set; }

		[DataMember]
		public bool? HasEmail { get; set; }

		[DataMember]
		public bool? HasValidShippingAddress { get; set; }

		[DataMember]
		public bool? HasValidBillingAddress { get; set; }

		[DataMember]
		public bool? IsSameBillingAddress { get; set; }

		[DataMember]
		public string SortByPropertyName { get; set; }

		[DataMember]
		public System.ComponentModel.ListSortDirection SortDirection { get; set; }

		[DataMember]
		public int PageIndex { get; set; }

		[DataMember]
		public int PageSize { get; set; }

		[DataMember]
		public bool? IsUnknownEmailInUsers { get; set; }

	}
}
